package com.feeyo.monitor.service.imp;

import com.feeyo.monitor.domain.Crossing;
import com.feeyo.monitor.mapper.CrossingMapper;
import com.feeyo.monitor.service.CrossingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author <a href="mailto:bliulei@variflight.com">liulei</a>
 * @Description Created by liulei on 2017/8/28 下午4:40.
 */
@Service
public class CrossingServiceImp implements CrossingService {
    @Autowired
    CrossingMapper crossingMapper;

    @Override
    public int insert(Crossing record) {
        return crossingMapper.insert(record);
    }

    @Override
    public Crossing selectByPrimaryKey(String id) {
        return crossingMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Crossing> selectByAirport(String airport) {
        return crossingMapper.selectByAirport(airport);
    }

    @Override
    public int updateDeleteStatus(String id) {
        return crossingMapper.updateDeleteStatus(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Crossing record) {
        return crossingMapper.updateByPrimaryKeySelective(record);
    }
}
